<template>
  <div class="login">
    <h1>欢迎光临</h1>
    <h1>{{hospitalName}}</h1>
  </div>
</template>
<script>
import axios from 'axios';

const { config } = window;

export default {
  data() {
    return {
      hospitalName: sessionStorage.getItem('hosName') || '互联网医院', // 医院名称
      hospitalDomain: '', // 医院域名
      path: '', // 跳转参数
      pm: '',
      pms: '',
    };
  },
  beforeCreate() {
  },
  created() {
    console.log('--------------------------------------- login -------------------------------------------');

    // 获取参数
    this.pms = `${this.$route.query.pms}`;
    console.log(`---------- params: ${this.pms}`);

    this.path = `${this.pms.split('$$')[0]}`;
    this.pm = `${this.pms.split('$$')[1]}`;

    sessionStorage.setItem('pm', this.pm);

    // 判断是否直接支付
    // ?
  },
  mounted() {
    //alert('login');
    this.getToken();
    // window.document.title = `${sessionStorage.getItem('hosName')}`;
  },
  methods: {
    getToken() {
        this.$router.push('/doctor/doctorlist');
    },
    
  },
};
</script>
<style scoped>
.login {
  width: 100%;
  text-align: center;
}
.h1:first-child {
  color: #333;
  font-family: "微软雅黑";
  font-size: 3rem;
  margin: 0;
}
.h1:nth-child(2) {
  font-size: 5rem;
}
</style>

